package com.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * (TbLog)表实体类
 *
 * @author makejava
 * @since 2024-11-07 19:53:31
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@TableName(value = "tb_log")
//日志表
public class TbLog extends Model<TbLog> {
    //用户id
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;
//日志类型
    private String type;
//日志内容
    private String info;
//创建时间
    private Date createTime;
    public TbLog(Integer uid, String type, String info) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.createTime=new Date();
    }
}

